Class HCC.DT.HCC2HL72.OperQue Extends Ens.DataTransformDTL [ DependsOn = (EnsLib.EDI.XML.Document, EnsLib.HL7.Message) ]
{

Parameter IGNOREMISSINGSOURCE = 1;

Parameter REPORTERRORS = 1;

Parameter TREATEMPTYREPEATINGFIELDASNULL = 0;

XData DTL [ XMLNamespace = "http://www.intersystems.com/dtl" ]
{
<transform sourceClass='EnsLib.EDI.XML.Document' targetClass='EnsLib.HL7.Message' sourceDocType='QUMT_IN020030UV01:QUMT_IN020030UV01' targetDocType='2.5.1:QRY_R02' create='new' language='objectscript' >
<assign value='source.{id().extension}' property='target.{MSH:MessageControlID}' action='set' />
<assign value='source.{creationTime().value}' property='target.{MSH:DateTimeOfMessage.Time}' action='set' />
<assign value='"QRY"' property='target.{MSH:MessageType.MessageCode}' action='set' />
<assign value='"R02"' property='target.{MSH:MessageType.TriggerEvent}' action='set' />
<assign value='source.{controlActProcess.queryByParameter.queryByParameterPayload().actId().value().item().extension}' property='target.{QRD:QueryID}' action='set' />
<assign value='source.{controlActProcess.queryByParameter.queryByParameterPayload().authorId.value().item().extension}' property='target.{QRD:WhoSubjectFilter(1).IDNumber}' action='set' />
<assign value='source.{controlActProcess.queryByParameter.queryByParameterPayload().effectiveTime.value().low.value}' property='target.{QRD:WhatDataCodeValueQual(1).FirstDataCodeValue}' action='set' />
<assign value='source.{controlActProcess.queryByParameter.queryByParameterPayload().effectiveTime.value().high.value}' property='target.{QRD:WhatDataCodeValueQual().LastDataCodeValue}' action='set' />
</transform>
}

}
